//
//  ViewController.m
//  TTNetworkDemo
//
//  Created by apple on 2018/4/2.
//  Copyright © 2018年 ttayaa. All rights reserved.
//

#import "ViewController.h"
#import "testmodel.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [testmodel POST_default:@"/auth/login" CacheIf:0 IsShowHud:1 parameters:^(testmodel *ParmsModel) {
        ParmsModel.login = @"13471045617";
        ParmsModel.password = @"asdasd";
    } success:^(BOOL isCatch, testmodel *model, NSMutableArray<testmodel *> *modelArr, id responseObject) {
        
    } failure:^(NSError *error, NSString *errorStr, NSString *status) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
